<?php 
	include("../../session_ini.php");
?>
<script type="text/javascript" src="<?php echo URL_BASE(); ?>/view/js/cropAvatar.js"></script>
<div id="popup2">
	<div id="cropAvatar">
		<img alt="" src="<?php echo URL_BASE(); ?>/view/uploads/avatars/<?php echo $_GET["src"]; ?>.jpg" class="crop" /><br />
		<form action="<?php echo URL_BASE(); ?>/controller/cropAvatar.php" method="POST">
			<input type="hidden" id="x" name="x" />
			<input type="hidden" id="y" name="y" />
			<input type="hidden" id="w" name="w" />
			<input type="hidden" id="h" name="h" />
			<input type="hidden" id="src" name="src" value="<?php echo $_GET["src"]; ?>.jpg" />
			<input type="submit" value="Recortar y Guardar" id="recortar" />
			<a href="" class="cancelar">Cancelar</a>
		</form>
	</div>
</div>